<?php
class App_Module_Admin_Component_Users_Tpl_Web extends App_Module_Admin_Tpl_Base
{
    public function ViewProfile($user)
    {
    	$this->user = $user;
        return $this->LoadTemplate (Mozg_Lang::_('PROFILE'), $this->render('users/_view_profile.phtml'));
    }

    public function UserStatus()
    {
    	Mozg::SubAction()->Add('RequiredJS', array($this, 'UserStatusJS'), array(), 'UserStatus');
        return $this->render('users/_userstatus.phtml');
    }

    public function UserStatusJS()
    {
    	return $this->render('users/js/_userstatus.js');
    }
    
    public function LoginForm()
    {
       return $this->render('users/_login.phtml');
    }

    public function SmallLoginForm()
    {
    	Mozg::SubAction()->Add('RequiredJS', array($this, 'LoginStatusJS'), array(), 'LoginStatus');
		return $this->render('users/_login_status.phtml');
    }
    
    public function LoginStatusJS()
    {
    	return $this->render('users/js/_login_status.js');
    }

    
}